package com.tpshion.cloud.auth.domain.dto;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 为角色分配菜单权限数据
 */
@Valid
public class SetRoleMenuDto {

    @NotEmpty(message = "角色id不能为空")
    @Size(max = 64, message = "角色id长度不能超过64")
    private String roleId;

    List<String> menuIds;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public List<String> getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(List<String> menuIds) {
        this.menuIds = menuIds;
    }

    @Override
    public String toString() {
        return "SetRoleMenuDto{" +
                "roleId='" + roleId + '\'' +
                ", menuIds=" + menuIds +
                '}';
    }
}
